DiscoveredConventions
class DiscoveredConventions implements Conventions
Discovers database conventions based on table structure metadata.
Methods
                    string|array|null
                
                
                    getPrimary(string $table)
        
                                            
                
            Returns primary key for table.
                    array|null
                
                
                    getHasManyReference(string $nsTable, string $key)
        
                                            
                
            Returns referenced table & referenced column.
                    array|null
                
                
                    getBelongsToReference(string $table, string $key)
        
                                            
                
            Returns referenced table & referencing column.
Details
        at line 22
                            
    __construct(Structure $structure)
        
    
    No description
        at line 28
                            string|array|null
    getPrimary(string $table)
        
    
    Returns primary key for table.
        at line 34
                            array|null
    getHasManyReference(string $nsTable, string $key)
        
    
    Returns referenced table & referenced column.
Example: (author, book) returns [book, author_id]
        at line 83
                            array|null
    getBelongsToReference(string $table, string $key)
        
    
    Returns referenced table & referencing column.
Example (book, author) returns [author, author_id] (book, translator) returns [author, translator_id]