No, there is no difference between entities and src. The tutorial docs you 
are referring to are building up the entities and mapping step by step: 
first it is  the code of the entities, without the mapping. Later the 
mapping is added. When using annotation, the mapping is added to the same 
files in which the entities are defined. Please take some time to read the 
docs a few times, and then a few times more, until you really understand 
what it is saying. Then your questions will be resolved.

Some basic vocabulary (you can read more about it in Martin Fowler's 
"Patterns of Enterprise Application Architecture" and Eric Evans' "Domain 
Driven Design" to get a better understanding of basic theory):

   - *entity *= a *domain-object* (defined by its identity). In general, 
   these are the basic "things" to build your model with.
   - object relational mapping (ORM) = a *mapping *between the domain 
   objects (entities) and relational database tables in order to be able to 
   persist the state of those objects.

There is no "src" in the basic vocabulary. That is just a folder that is 
used in the example to store the PHP-code. You can also use another folder 
for that; it's not important, just an example. In your program you work 
with the entities, the domain-objects. The mapping is a different layer, 
only used to define the storage of the properties you want to persist. For 
convenience the mapping can be in the same file as the definition of your 
entities (by means of annotation or as a static function with PHP), but it 
still is another layer. 

So please take 2 steps back and read the whole documentation. And again. 
And some times more. You will understand it if you take the time needed for 
it. Succes!

*- Herman*
On Tuesday, 4 February 2014 12:51:19 UTC+1, Parsifal wrote:
>
> I entity files are the files that are used for metadata and mapping. By 
> src I meant the files that are explained in the start of docs. I asked what 
> are the diff? Is actually /src for creating database schema and when DB is 
> created they will not be used anymore?
>  در 2014 2 4 11:57، "Sebastian Krebs" <[email protected] <javascript:>> 
> نوشت:
>
>> Hi,
>>
>> I only speak for myself, but I have no idea, what you are talking about. 
>> What exactly do you mean with "src" and "entity"?
>>
>>
>> 2014-02-04 Nima Sadjadi <[email protected] <javascript:>>:
>>
>>> I am confused of this. Please advice.
>>>  در 2014 2 3 17:03، "Nima Sadjadi" <[email protected] <javascript:>> 
>>> نوشت:
>>>
>>> Just to make sure the difference of src and entity is that, src is for 
>>>> creating database structure and tables during instalation, but when db is 
>>>> created then src will no longer be used but just entities will be used to 
>>>> update/inaert/query records from db, am I correct?
>>>>  
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "doctrine-user" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> To post to this group, send email to [email protected]<javascript:>
>>> .
>>> Visit this group at http://groups.google.com/group/doctrine-user.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>
>>
>> -- 
>> github.com/KingCrunch 
>>  
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "doctrine-user" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/doctrine-user.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"doctrine-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/doctrine-user.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to