composer : PHP Fatal 
error:  Uncaught 
Error: Call to a 
member function hasComp
ositePrimaryKey() on 
null in C:\Users\Van\Do
cuments\CRM-7.0.1\src\v
endor\perplorm\perpl\sr
c\Propel\Generator\Mode
l\Table.php:877
At line:1 char:1
+ composer orm-gen > 
orm_output.txt 2>&1
+ ~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~
    + CategoryInfo     
         : NotSpecifi  
  ed: (PHP Fatal err   
 or...l\Table.php:8    
77:String) [], Rem    
oteException
    + FullyQualifiedEr 
   rorId : NativeComm  
  andError
 
Stack trace:
#0 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\perplorm\perpl\src\Pro
pel\Generator\Model\Dat
abase.php(932): Propel\
Generator\Model\Table->
setupReferrers()
#1 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\perplorm\perpl\src\Pro
pel\Generator\Model\Dat
abase.php(892): Propel\
Generator\Model\Databas
e->setupTableReferrers(
)
#2 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\perplorm\perpl\src\Pro
pel\Generator\Model\Sch
ema.php(270): Propel\Ge
nerator\Model\Database-
>doFinalInitialization(
)
#3 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\perplorm\perpl\src\Pro
pel\Generator\Manager\A
bstractManager.php(379)
: Propel\Generator\Mode
l\Schema->doFinalInitia
lization()
#4 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\perplorm\perpl\src\Pro
pel\Generator\Manager\A
bstractManager.php(170)
: Propel\Generator\Mana
ger\AbstractManager->lo
adDataModels()
#5 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\perplorm\perpl\src\Pro
pel\Generator\Manager\M
odelManager.php(50): Pr
opel\Generator\Manager\
AbstractManager->getDat
aModels()
#6 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\perplorm\perpl\src\Pro
pel\Generator\Command\M
odelBuildCommand.php(15
2): Propel\Generator\Ma
nager\ModelManager->bui
ld()
#7 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\symfony\console\Comman
d\Command.php(341): Pro
pel\Generator\Command\M
odelBuildCommand->execu
te()
#8 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\symfony\console\Applic
ation.php(1094): Symfon
y\Component\Console\Com
mand\Command->run()
#9 C:\Users\Van\Documen
ts\CRM-7.0.1\src\vendor
\symfony\console\Applic
ation.php(356): Symfony
\Component\Console\Appl
ication->doRunCommand()
#10 C:\Users\Van\Docume
nts\CRM-7.0.1\src\vendo
r\perplorm\perpl\src\Pr
opel\Generator\Applicat
ion.php(32): Symfony\Co
mponent\Console\Applica
tion->doRun()
#11 C:\Users\Van\Docume
nts\CRM-7.0.1\src\vendo
r\symfony\console\Appli
cation.php(195): Propel
\Generator\Application-
>doRun()
#12 C:\Users\Van\Docume
nts\CRM-7.0.1\src\vendo
r\perplorm\perpl\bin\pr
opel.php(37): Symfony\C
omponent\Console\Applic
ation->run()
#13 C:\Users\Van\Docume
nts\CRM-7.0.1\src\vendo
r\perplorm\perpl\bin\pr
opel(4): require('...')
#14 C:\Users\Van\Docume
nts\CRM-7.0.1\src\vendo
r\bin\propel(119): 
include('...')
#15 {main}
  thrown in C:\Users\Va
n\Documents\CRM-7.0.1\s
rc\vendor\perplorm\perp
l\src\Propel\Generator\
Model\Table.php on 
line 877
Script php 
vendor/bin/propel 
--config-dir=../orm 
model:build handling 
the orm-gen event 
returned with error 
code 255
